<template>
  <a-input
    :value="model[record.model]"
    placeholder="Basic usage"
    @input="input"
    allowClear
  />
</template>
<script>
export default {
  props: {
    record: {
      default() {
        return {};
      },
      type: Object
    }
  },
  inject: ["model", "changeModel", "baseForm"],
  methods: {
    input(e) {
      console.log(e);
      this.changeModel(this.record.model, e.target.value);
      console.log(this.model);
    }
  },
  created() {
    // console.log("--顶顶顶------------");
    // console.log(this.record);
  }
};
</script>
